<?php 
	$this->load->library("urlutility");
?>
<div class="item mgt18 pdt17 pdb28" style="box-shadow:0 0 1px #000 inset;overflow:hidden">
  <h1 class="ff_museo700 mgt0 blue txt_indent20">Best Selling Hotels
    <div class="fr pdt5 pdr20"><a href="javascript:void(0);" onClick="LeftClick('spnumberofpagebsh','totalpagebsh','boxoutsizebestsellinghotel');" class="fl mgt4 mgr-50" id="arrowleftbestdetails" style="position:relative;z-index:1;"><img src="<?php echo base_url(); ?>public/images/arrow_01.jpg" width="10" height="15" class="fl" /></a><span class="fl gray f18"><span  id="spnumberofpagebsh">1</span>&nbsp;/&nbsp;<span id="totalpagebsh"><?php echo ceil(count($bestsellinghotel)/3); ?></span>&nbsp;</span><a href="javascript:void(0);" onClick="RightClick('spnumberofpagebsh','totalpagebsh','boxoutsizebestsellinghotel','getajax_bestsellinghotel',bestselling);"><img src="<?php echo base_url(); ?>public/images/arrow_03.png" width="9" height="15" class=" fl mgt4"/></a></div>
  </h1>
  <div class="h247 ov_fl_hidden item pst_relative" id="boxoutsizebestsellinghotel">
    <?php if(count($topbestselling)>0){ 
  			foreach($topbestselling as $listbestselling){?>
    <div class="fl w269 pdl20"> <img src="<?php echo base_url(); ?>public/images/banner2_03.jpg" width="100%" height="115"/>
      <h3 class="ff_museo700 mgt0 mgb0 blue f18 h22 ov_fl_hidden"><?php echo $listbestselling["name"]; ?></h3>
      <div class="fl pdt1"><?php 	  	
				for($i=1;$i<=intval($listbestselling["numberstarreview"]);$i++){ ?>
					<img src="<?php echo base_url(); ?>public/images/star_01.png" width="12" height="11"/>
				<?php }
				if(intval($listbestselling["numberstarreview"])<5){
					for($i=1;$i<=5-intval($listbestselling["numberstarreview"]);$i++){?>
					<img src="<?php echo base_url(); ?>public/images/hidden-star-05.png" width="12" height="11"/>
					<?php }
				}
		  ?></div>
      &nbsp;<?php echo count($listbestselling["bestsellingreview"]); ?> reviews
      <p class="f11 mgt6 mgb10 ov_fl_hidden h42"><?php echo $listbestselling["description"]; ?></p>
      <div class="item bgr_gray pdt6 pdb6"> <span class="fl blue pdt4 pdl5">Price from</span> <strong class="fl pdl20 orange ff_museo700 f18"><?php if($listbestselling["priceminest"]==0)echo "N/A";else echo 'US $'.$listbestselling["priceminest"] ?></strong> <a class="fr ff_museo500 white bgr_143167 pdt5 pdl6 pdr6 pdb3 mgr5" href="<?php echo $this->urlutility->gethotel($listbestselling["id"],$listbestselling["name"]); ?>">DETAILS</a> </div>
    </div>
    <?php }}?>
  </div>
</div>
<script>
var bestselling=Array();
	for(var i=1;i<=1000;i++){		
		bestselling[i]=false;
	}
	bestselling[1]=true;
</script>